package com.xing.todolist.viewModel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class MainActViewModel extends ViewModel {

    private MutableLiveData<String> text;

    public MutableLiveData<String> getText() {
        if (text == null) {
            text = new MutableLiveData<>();
            text.setValue("default");
        }

        return text;
    }

    public void setText(String s) {
        this.text.setValue(s);
    }
}
